
public class Calculadora {
	
	public double add(double number1, double number2){ 
	    return number1 + number2; 
	}  
	  public double subtract(double number1, double number2){ 
	    return number1 - number2; 
	} 
	  public double multiply(double number1, double number2) { 
	    return number1 * number2; 
	} 
	  public double divide(double number1, double number2){ 
		
		  if (number2 == 0){
			//System.out.println("error: no se puede dividir entre 0");
			return 0;
		}else {
			return number1 / number2;
		}	     
	}
	  
	  public double potencia (double number1, double number2){
		return Math.pow(number1, number2);
	  }
}
